
<div id="index_center">
    	<div id="slides_show">
    	   	<div id="slides_nav"></div>
    	    <a href="http://www.huakaili.com/help/?subpage=201"><img src="<?php echo IMAGE_DIR; ?>ad_banner03.jpg" /></a>
    	    <a href="http://www.huakaili.com/help/?subpage=201"><img src="<?php echo IMAGE_DIR; ?>ad_banner04.jpg" /></a>  	
    	</div>
    	
        <div class="Hot_Reviews_Index">
        	<div class="HRI_top"><h2>最新点评</h2></div>
            <div class="HRI_middle">
<?php
		//	if($newReviews1)
		//	{
				//$count =  count($linkColorList);
			
				foreach($newReviews1 as $Review)
				{
					//$num = rand(0,$count-1);
?>
					<table width="200" border="0" cellpadding="0" cellspacing="0" class="item_HRI">
					<tr>
						 <td rowspan="3"class="HRI_pic">
						 	<a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$Review['user_id']);?>" target="_blank">
						 		<img src="<?php echo EdpGetAvatarUrl($Review['logo_path']);?>"/>
						 	</a>
						 </td>
						 <td class="HRI_title">
						 	<a  href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$Review['shop_id']);?>" target="_blank">
						 		<?php secho($Review['shop_name']);?>
						 	</a>
						 	<ul class="HRI_result">						 	
						 	<li><a  href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$Review['user_id']);?>" target="_blank"><?php echo $Review['nick'];?></a></li>
						 	<li><span class="smallscore<?php echo $Review['score']+1;?> HRI_score"></span></li>
						 	<li>商家服务：<?php echo $Review['service'];?></li>  
						 	<li>商品真实度：<?php echo $Review['reality'];?></li>  
						 	<li>发货速度：<?php echo $Review['velocity'];?></li>  
						 	<li>性价比：<?php echo $Review['rate'];?></li>
						 	</ul>
						 	 
						 </td>
					</tr>
			
					<tr>
						<td class="HRI_content" >
<?php 
							if(mb_strlen($Review['content'])>100)
							{
								secho(EdpSubStr($Review['content'], 0, 100 )."...");
							}
							else 
							{
								secho($Review['content']);
							}
?>
							<a class="ea" href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO, 'rid='.$Review['id']);?>" target="_blank">(阅读全部)</a>
						</td>
					</tr>
					</table>
<?php
				}
		//	} 
?> 
			<span class="r_link"><a href="http://www.huakaili.com/review_summary/?platid=">更多最新点评>></a> </span>
			<div style="clear:both"></div>
            </div>
            <div class="HRI_bottom"></div>
      </div>
          	
        <div class="Hot_Reviews_Index">
        	<div class="HRI_top"><h2>最近热门点评</h2></div>
            <div class="HRI_middle">
<?php
			if($hotReviews)
			{
				//$count =  count($linkColorList);
			
				foreach($hotReviews as $Review)
				{
					//$num = rand(0,$count-1);
?>
					<table width="200" border="0" cellpadding="0" cellspacing="0" class="item_HRI">
					<tr>
						 <td rowspan="3"class="HRI_pic">
						 	<a href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$Review['user_id']);?>" target="_blank">
						 		<img src="<?php echo EdpGetAvatarUrl($Review['logo_path']);?>"/>
						 	</a>
						 </td>
						 <td class="HRI_title">
						 	<a  href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$Review['shop_id']);?>" target="_blank">
						 		<?php secho($Review['shop_name']);?>
						 	</a>
						 	<ul class="HRI_result">						 	
						 	<li><a  href="<?php echo edp_href_link(PAGENAME_USER_INFO, 'uid='.$Review['user_id']);?>" target="_blank"><?php echo $Review['nick'];?></a></li>
						 	<li><span class="smallscore<?php echo $Review['score']+1;?> HRI_score"></span></li>
						 	<li>商家服务：<?php echo $Review['service'];?></li>  
						 	<li>商品真实度：<?php echo $Review['reality'];?></li>  
						 	<li>发货速度：<?php echo $Review['velocity'];?></li>  
						 	<li>性价比：<?php echo $Review['rate'];?></li>
						 	</ul>
						 	 
						 </td>
					</tr>
			
					<tr>
						<td class="HRI_content" >
<?php 
							if(mb_strlen($Review['content'])>100)
							{
								secho(EdpSubStr($Review['content'], 0, 100 )."...");
							}
							else 
							{
								secho($Review['content']);
							}
?>
							<a class="ea" href="<?php echo edp_href_link(PAGENAME_REVIEW_INFO, 'rid='.$Review['id']);?>" target="_blank">(阅读全部)</a>
						</td>
					</tr>
					</table>
<?php
				}
			} 
?> 
			<div style="clear:both"></div>
            </div>
            <div class="HRI_bottom"></div>
      </div>
        
        <div class="hot_store_index">
                <div class="hot_store_index01"><span>热门店铺</span></div>
                <div class="hot_store_index02">                	
       	    <table border="0" cellspacing="0" cellpadding="0" class="hot_store_index_detail">
<?php			
						$index='0';
						foreach($hotShops as $shop)
						{
							if($index%'4'=='0')
								echo '<tr>';
?>
							<td>
<?php
							if($shop!=false) 
							{
?>
								<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>" target="_blank">
									<img src="<?php echo $shop['logo_url'];?>" alt="<?php echo $shop['shop_name']?>" class="item_list_pic_shop1 thumbImage80"></img>
								</a>
								<div class="hot_store_name"><a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$shop['id']);?>" target="_blank"><?php echo $shop['shop_name']?></a></div>
<?php 
							}
?>
							</td>
<?php
							if($index%'4'=='3')
							{
								echo '</tr>';
							}
							$index++;
						}
?>   
                   </table>
                     
                </div>
                <div class="hot_store_index03"></div>            
   	  </div>
      
        	<div class="hot_store_index">
                <div class="hot_mall_index01"><span>热门商城</span></div>
                <div class="hot_store_index02">                	
       	    <table border="0" cellspacing="0" cellpadding="0" class="hot_store_index_detail">
<?php			
						$index='0';
						foreach($hotMalls as $mall)
						{
							if($index%'4'=='0')
								echo '<tr>';
?>
							<td>
<?php
							if($mall!=false) 
							{
?>

							<span class="item_list_pic_mall1">
								<a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$mall['id']);?>" target="_blank">
									<img src="<?php echo $mall['logo_url'];?>" alt="<?php echo $mall['shop_name']?>" class="thumbMallImage80"></img>
								</a>
							</span>
											
								<div class="hot_store_name"><a href="<?php echo edp_href_link(PAGENAME_SHOP_INFO, 'sid='.$mall['id']);?>" target="_blank"><?php echo $mall['shop_name']?></a></div>
<?php 
							}
?>
							</td>
<?php
							if($index%'4'=='3')
							{
								echo '</tr>';
							}
							$index++;
						}
?>   
                   </table>
                     
                </div>
                <div class="hot_store_index03"></div>            
   	  </div>
   	              
<!-- remove hot product -->
             <div class="hot_prod_index">
                <div class="hot_prod_index01"><span>热门商品</span></div>
                <div class="hot_prod_index02">                	
                    	<table border="0" cellspacing="0" cellpadding="0" class="hot_prod_index_detail">
<?php			
						$index='0';
						foreach($hotProducts as $product)
						{
							if($index%'4'=='0')
								echo '<tr>';
?>
							<td>
<?php
							if($product!=false)
							{ 
?>
								<a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product['id']);?>" target="_blank">
									<img src="<?php echo $product['pic_path'];?>" alt="<?php echo $product['product_name']?>" class="item_list_pic_prod1 thumbImage80" ></img>
								</a>
								<div class="hot_prod_name"><a href="<?php echo edp_href_link(PAGENAME_PRODUCT_INFO, 'pid='.$product['id']);?>" target="_blank"><?php echo $product['product_name']?></a></div>
<?php
							} 
?>
							</td>
<?php
							if($index%'4'=='3')
							{
								echo '</tr>';
							}
							$index++;
						}
?>   
                        </table>
                     
                </div>
                <div class="hot_prod_index03"></div>            
        	</div>       	         	  
   	  
    </div>